package com.cans.base.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * @author cans
 * @date 2018/6/18
 * @description 用户类
 */
@Entity
@Table(name = "sso_user",uniqueConstraints = {@UniqueConstraint(columnNames = "username")})
public class SsoUser extends BaseModel {

    /**
     * 用户名
     */
    @Column(name = "username",length = 60)
    private String username;
    /**
     * 密码
     */
    @Column(name = "password",length = 60)
    private String password;
    /**
     * 是否启用
     */
    @Column(name = "enable",length = 2)
    private Integer enable;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }
}
